package com.bookmarket.entity;

import java.util.Date;

/**
 * @author Chen Zhaoguang
 * @date 2017/12/26 11:26
 */

/**
 * 订单
 */
public class Order {
    private int id;
    private String order_list;//订单编号 序列号
    private Date createTime;//创建时间
    private String rename;//收货人姓名
    private String phone;//联系方式
    private String address;//收货地址
    private float zongjia;//总价
    private int order_state;//订单状态(0:未下单 1:下单)
    private int status;//发货状况(0:未发 1:发货 2:收货 3:退货)
    private Custom custom;//用户外键

    public Order() {
    }

    public Order(Date createTime, String rename, String phone, String address, int order_state, int status, Custom custom) {
        this.createTime = createTime;
        this.rename = rename;
        this.phone = phone;
        this.address = address;
        this.order_state = order_state;
        this.status = status;
        this.custom = custom;
    }

    public Order(int id, String order_list, Date createTime, String rename, String phone, String address, int zongjia, int order_state, int status, Custom custom) {
        this.id = id;
        this.order_list = order_list;
        this.createTime = createTime;
        this.rename = rename;
        this.phone = phone;
        this.address = address;
        this.zongjia = zongjia;
        this.order_state = order_state;
        this.status = status;
        this.custom = custom;
    }

    public Order(int id, String order_list, Date createTime, String rename, String phone, String address, int order_state, int status, Custom custom) {
        this.id = id;
        this.order_list = order_list;
        this.createTime = createTime;
        this.rename = rename;
        this.phone = phone;
        this.address = address;
        this.order_state = order_state;
        this.status = status;
        this.custom = custom;
    }

    public float getZongjia() {
        return zongjia;
    }

    public void setZongjia(float zongjia) {
        this.zongjia = zongjia;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getOrder_list() {
        return order_list;
    }

    public void setOrder_list(String order_list) {
        this.order_list = order_list;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getRename() {
        return rename;
    }

    public void setRename(String rename) {
        this.rename = rename;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public int getOrder_state() {
        return order_state;
    }

    public void setOrder_state(int order_state) {
        this.order_state = order_state;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public Custom getCustom() {
        return custom;
    }

    public void setCustom(Custom custom) {
        this.custom = custom;
    }
}
